﻿<Window 
        x:Class="Head3DTracking.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="clr-namespace:Head3DTracking"
        Title="三维头部追踪"
        Closed="WindowClosed"
        Height="735" Width="1200" 
        >

    <Window.Resources>
        <SolidColorBrush x:Key="MediumGreyBrush" Color="#ff6e6e6e"/>
        <SolidColorBrush x:Key="KinectPurpleBrush" Color="#ff52318f"/>
        <SolidColorBrush x:Key="KinectBlueBrush" Color="#ff00BCF2"/>
        <Style TargetType="{x:Type Image}">
            <Setter Property="SnapsToDevicePixels" Value="True"/>
        </Style>
    </Window.Resources>

    <Grid Name="layoutGrid" Margin="10 0 10 10">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width =" auto"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        <DockPanel Grid.Row="0" Grid.ColumnSpan="2"  Margin="0 0 0 20">
            <Image Grid.Column="1" Source="Images\Status.png" Stretch="None" HorizontalAlignment="Center" Margin="0 0 0 5"/>
        </DockPanel>
        <Viewbox Grid.Row="1" Grid.Column="0"  Stretch="Uniform" HorizontalAlignment="Center">
            <Grid Name="MainGrid" Width="640" Height="480">
                <Image Name="ColorImage"/>
                <local:FaceTrackingViewer x:Name="faceTrackingViewer" />
            </Grid>
        </Viewbox>
        <StackPanel Grid.Row="1" Grid.Column="1">
            <TextBlock Margin="5,5,5,0" Foreground="#ff52318f" FontSize="25">头部追踪数据：</TextBlock>
            <TextBlock Margin="10,10,10,0"  Foreground="#ff52318f" FontSize="22">姿态(绕相应坐标轴的旋转)：</TextBlock>
            <TextBlock Margin="15,15,15,0" x:Name="Head_X" Foreground="#ff52318f" FontSize="22" Text="Pitch:"></TextBlock>
            <TextBlock Margin="15,15,15,0" x:Name="Head_Y" Foreground="#ff52318f" FontSize="22" Text="Yow:"></TextBlock>
            <TextBlock Margin="15,15,15,0" x:Name="Head_Z" Foreground="#ff52318f" FontSize="22" Text="Roll:"></TextBlock>
            <TextBlock Margin="10,10,10,0"  Foreground="#ff52318f" FontSize="22">头部参数：
                </TextBlock>
            <TextBlock Margin="15,15,15,0" x:Name="Head_Length" Foreground="#ff52318f" FontSize="22" Text="头长:"></TextBlock>
            <TextBlock Margin="15,15,15,0" x:Name="Head_Width" Foreground="#ff52318f" FontSize="22" Text="头宽:"></TextBlock>
        </StackPanel>
   </Grid>
</Window>
